import os

from .set_base import *

# using command: python manage.py runserver --settings=SIMS_pro.settings.set_dev

LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'Asia/Shanghai'
USE_TZ = False
INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'sims',
    'captcha',
]
STATIC_URL = '/static/'
STATICFILES_DIRS = [
    os.path.join(BASE_DIR, 'static')
]
IMAGES_URL = '/images/'  # 访问文件的url根路径
IMAGES_ROOT = os.path.join(BASE_DIR, 'images')  # 上传文件存储根目录
# 设置 captcha 图片大小
CAPTCHA_LENGTH = 3  # 字符个数
CAPTCHA_TIMEOUT = 1  # 超时(minutes)